//-----------------------------------------------------------------------
// <copyright file="ProductBuyBase.cs" company="FetCo">
//     Copyright (c) FetCo. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ADESSA.Entities
{
	[Serializable]
	public class ProductBuyBase
	{
		
		#region Variable Declarations
		public static string _Table = "ProductBuy";
		private long				productId = 0;
		private string				url = string.Empty;
		private string				title = string.Empty;
		private string				briefDescription = string.Empty;
		private DateTime				createdDate = new DateTime(1900,1,1,0,0,0,0);
		private DateTime				updatedDate = new DateTime(1900,1,1,0,0,0,0);
		private long				memberId = 0;
		private long				order = 0;
		private string				image = string.Empty;
		private string				thumbnailImage = string.Empty;
		private DateTime				endDate = new DateTime(1900,1,1,0,0,0,0);
		private long				catId = 0;
		private long				viewed = 0;
		private long				objectId = 0;
		private int				statusId = 0;
		private bool				enable = false;
		private string				activateCode = string.Empty;
		private int				contactOption = 0;
		private DateTime				expireDate = new DateTime(1900,1,1,0,0,0,0);
		private string				detailDescription = string.Empty;
		private long				priceRangeUnitId = 0;
		private string				priceRangeSmall = string.Empty;
		private string				priceRangeLarge = string.Empty;
		private string				quantityRequire = string.Empty;
		private long				quantityRequireTypeId = 0;
		private string				requiredCertification = string.Empty;
		#endregion
		
		#region Constructors
		public ProductBuyBase() {}
		
		public ProductBuyBase (
			long productId,
			string url,
			string title,
			string briefDescription,
			DateTime createdDate,
			DateTime updatedDate,
			long memberId,
			long order,
			string image,
			string thumbnailImage,
			DateTime endDate,
			long catId,
			long viewed,
			long objectId,
			int statusId,
			bool enable,
			string activateCode,
			int contactOption,
			DateTime expireDate,
			string detailDescription,
			long priceRangeUnitId,
			string priceRangeSmall,
			string priceRangeLarge,
			string quantityRequire,
			long quantityRequireTypeId,
			string requiredCertification)
		
		{
			this.productId = productId;
			this.url = url;
			this.title = title;
			this.briefDescription = briefDescription;
			this.createdDate = createdDate;
			this.updatedDate = updatedDate;
			this.memberId = memberId;
			this.order = order;
			this.image = image;
			this.thumbnailImage = thumbnailImage;
			this.endDate = endDate;
			this.catId = catId;
			this.viewed = viewed;
			this.objectId = objectId;
			this.statusId = statusId;
			this.enable = enable;
			this.activateCode = activateCode;
			this.contactOption = contactOption;
			this.expireDate = expireDate;
			this.detailDescription = detailDescription;
			this.priceRangeUnitId = priceRangeUnitId;
			this.priceRangeSmall = priceRangeSmall;
			this.priceRangeLarge = priceRangeLarge;
			this.quantityRequire = quantityRequire;
			this.quantityRequireTypeId = quantityRequireTypeId;
			this.requiredCertification = requiredCertification;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long ProductId
		{
			get { return productId; }
			set { productId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Url
		{
			get { return url; }
			set { url = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Title
		{
			get { return title; }
			set { title = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string BriefDescription
		{
			get { return briefDescription; }
			set { briefDescription = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime CreatedDate
		{
			get { return createdDate; }
			set { createdDate = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime UpdatedDate
		{
			get { return updatedDate; }
			set { updatedDate = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long MemberId
		{
			get { return memberId; }
			set { memberId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long Order
		{
			get { return order; }
			set { order = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Image
		{
			get { return image; }
			set { image = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string ThumbnailImage
		{
			get { return thumbnailImage; }
			set { thumbnailImage = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime EndDate
		{
			get { return endDate; }
			set { endDate = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long CatId
		{
			get { return catId; }
			set { catId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long Viewed
		{
			get { return viewed; }
			set { viewed = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long ObjectId
		{
			get { return objectId; }
			set { objectId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int StatusId
		{
			get { return statusId; }
			set { statusId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool Enable
		{
			get { return enable; }
			set { enable = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string ActivateCode
		{
			get { return activateCode; }
			set { activateCode = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int ContactOption
		{
			get { return contactOption; }
			set { contactOption = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime ExpireDate
		{
			get { return expireDate; }
			set { expireDate = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is ntext</value>
		public string DetailDescription
		{
			get { return detailDescription; }
			set { detailDescription = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long PriceRangeUnitId
		{
			get { return priceRangeUnitId; }
			set { priceRangeUnitId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string PriceRangeSmall
		{
			get { return priceRangeSmall; }
			set { priceRangeSmall = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string PriceRangeLarge
		{
			get { return priceRangeLarge; }
			set { priceRangeLarge = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string QuantityRequire
		{
			get { return quantityRequire; }
			set { quantityRequire = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long QuantityRequireTypeId
		{
			get { return quantityRequireTypeId; }
			set { quantityRequireTypeId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string RequiredCertification
		{
			get { return requiredCertification; }
			set { requiredCertification = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum ProductBuyColumns
	{
		ProductId,
		Url,
		Title,
		BriefDescription,
		CreatedDate,
		UpdatedDate,
		MemberId,
		Order,
		Image,
		ThumbnailImage,
		EndDate,
		CatId,
		Viewed,
		ObjectId,
		StatusId,
		Enable,
		ActivateCode,
		ContactOption,
		ExpireDate,
		DetailDescription,
		PriceRangeUnitId,
		PriceRangeSmall,
		PriceRangeLarge,
		QuantityRequire,
		QuantityRequireTypeId,
		RequiredCertification
	}//End enum
}